465247355 by Unknown
Author:Unknown
Language: eng
Format: epub
void loop() {
//Turns on each LED at a time (make 5V appear at each pin)
digitalWrite(led1, HIGH);
delay(ledspeed);
digitalWrite(led2, HIGH);
delay(ledspeed);
digitalWrite(led3, HIGH);
delay(ledspeed);
digitalWrite(led4, HIGH);
delay(ledspeed);
//Turns off the LEDs one at a time then repeats the process
digitalWrite(led1, LOW);
delay(ledspeed);
digitalWrite(led2, LOW);
delay(ledspeed);
digitalWrite(led3, LOW);
delay(ledspeed);
digitalWrite(led4, LOW);
delay(ledspeed);
}
Save the code above as Running_LEDs and upload it to Arduino. Remember, if you copy and paste code, clear everything from the IDE first before pasting. The IDE should be blank before pasting. Practice this project by altering the code so that it runs in reverse after counting to the last LED. Another cool thing to do is to change the positions of the LEDs in the code to come up with interesting patterns.
Working with Push-buttons
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Twisted Games: A Forbidden Royal Bodyguard Romance by Ana Huang(3666)
Den of Vipers by K.A Knight(2567)
The Push by Ashley Audrain(2564)
Win by Harlan Coben(2512)
Echo by Seven Rue(2137)
Beautiful World, Where Are You: A Novel by Sally Rooney(2035)
Leave the World Behind by Rumaan Alam(1982)
Iron Widow by Xiran Jay Zhao(1967)
Baby Bird by Seven Rue(1939)
Midnight Mass by Sierra Simone(1899)
A Little Life: A Novel by Hanya Yanagihara(1742)
Undercover Threat by Sharon Dunn(1678)
The Four Winds by Hannah Kristin(1669)
Bridgertons 2.5: The Viscount Who Loved Me [Epilogue] by Julia Quinn(1665)
The Warrior's Princess Prize by Carol Townend(1542)
Sister Fidelma 07 - The Monk Who Vanished by Peter Tremayne(1495)
Snowflakes by Ruth Ware(1482)
Dark Deception by Rina Kent(1430)
Facing the Mountain by Daniel James Brown(1428)
